﻿<Window x:Class="Probel.Ldoc.Views.ToolBoxes.RecordHistoryView"
        
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
        
        Title="{x:Static t:Messages.Title_History}"
        Height="600" Width="800" 
        WindowStartupLocation="CenterOwner" 
        ShowInTaskbar="False" 
        WindowStyle="SingleBorderWindow" Icon="/Probel.Ldoc.Views;component/Images/Icon.ico">
    <DockPanel>
        <DockPanel DockPanel.Dock="Top">
            <Label DockPanel.Dock="Left" 
                   Content="{x:Static t:Messages.Lbl_RecordHistoryDates}" 
                   Margin="5"/>
            <Button DockPanel.Dock="Right" 
                    Content="{x:Static t:Messages.Btn_RevertCard}" 
                    Command="{Binding RevertCommand}"
                    Margin="5"
                    Click="Button_Click"/>
            <ComboBox x:Name="comboBox" 
                      ItemsSource="{Binding Dates}"
                      DisplayMemberPath="LastUpdate"
                      SelectedItem="{Binding SelectedState}"
                      Margin="5" SelectionChanged="ComboBox_SelectionChanged"/>
        </DockPanel>
        <RichTextBox x:Name="editor"                      
                     IsReadOnly="True"
                     Margin="5"
                     VerticalScrollBarVisibility="Visible"
                     HorizontalScrollBarVisibility="Auto"/>
    </DockPanel>
</Window>
